Window must be open to use this command